package com.zll.order.service.impl;

import com.zll.dubboapi.service.OrderService;
import com.zll.dubboapi.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description:
 * @Author: zll
 * @Date: 2020/11/3 6:09
 */
@Slf4j
@Service
public class OrderServiceImpl implements OrderService {

    @DubboReference
    /*(registry = "2")*/
    /*(parameters = {
            "getAddress.timeout","50"
    })*/
    private UserService userService;

    @Override
    public String createOrder(String userName) {
        log.info("我进入订单服务啦。。。");
        return userService.getAddress(userName);
    }

}
